import CodeBlock from '@theme/CodeBlock';
import source from '!!raw-loader!./create-and-validate-certificate.example';

# Create and validate certificate

In this example, you will see how to create a self-signed X.509 certificate, parse an X.509 certificate, and show how to do certificate chain validation engine.

<CodeBlock language="ts">
  {source}
</CodeBlock>
